package com.example.springbootvuedemo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.springbootvuedemo.domain.Book;

import java.io.IOException;
import java.util.List;

public interface BookService {
    Boolean save(Book book) throws IOException;
    Boolean update(Book book);
    Boolean delete(Integer id);
    Book getById(Integer id);
    List<Book> getAll();
    IPage<Book> getByPage(Integer current, Integer size);
    IPage<Book> getByPageSelect(Integer current, Integer size,Book book);
}
